// vue.config.js for less-loader@6.0.0
module.exports = {
    devServer: {
        open: true,
        // 配置代理
        proxy: {
            // http://wkt.myhope365.com/api/pc/course/detail/103

            "/api": {
                // target: "http://wkt.myhope365.com",
                target: "http://wkt.myhope365.com",
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            },
        },

    },
    css: {
        loaderOptions: {
            less: {
                lessOptions: {
                    // If you are using less-loader@5 please spread the lessOptions to options directly
                    modifyVars: {
                        'primary-color': '#1DA57A',
                        'link-color': '#1DA57A',
                        'border-radius-base': '2px',
                    },
                    javascriptEnabled: true,
                },
            },
        },
    },
};